POV-Ray : Newsgroups : povray.general : Random but constrained vector : Random but constrained vector Server Time
19 Nov 2024 05:37:34 EST (-0500)
  Random but constrained vector  
From: Tom Melly
Date: 17 Apr 2002 17:31:13
Message: <3cbde9a1@news.povray.org>
Given a vector <a,b,c>, how would I go about calculating a new vector within
x degrees of the original vector?

i.e. given a cone:

cone{<1,1,1>, 25, <0,0,0>,0}

a random vector within 25 degrees would lie within the cone's radius.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.